home *** CD-ROM | disk | FTP | other *** search
/ Chip: 2005 Utilities / CHIP Utilities 2005.7z / CHIP Utilities 2005.iso / images / arachne.igz / arachne.img / LEVEL0 / UTILZ.CAB / bin / Mac.bat < prev    next >
DOS Batch File  |  2005-01-16  |  442b  |  13 lines

  1. @if "%debug%"=="" echo off
  2. if not exist %ramdrv%\bin\macaddr.exe goto _end
  3. macaddr | tfind "address:" >%tmp%\_mac.tmp
  4. lmod /S. set macaddr=[$3][$4][$5][$6][$7][$8][+]set macaddr8=[$5][$6][$7][$8]<%tmp%\_mac.tmp >%tmp%\_mac.bat
  5. set macaddr=
  6. set macaddr8=
  7. call %tmp%\_mac.bat
  8. if not "%macaddr8%"=="????????" goto _end
  9. set macaddr=000000000000
  10. set macaddr8=00000000
  11. :_end
  12. for %%i in (%tmp%\_mac.*) do if exist %%i del %%i >%tmp%\nul
  13.